Scrollbar grippers
authorRaymond Penners <pennersr@src.gnome.org>
Mon, 20 Oct 2003 17:38:53 +0000 (17:38 +0000)
committerRaymond Penners <pennersr@src.gnome.org>
Mon, 20 Oct 2003 17:38:53 +0000 (17:38 +0000)
modules/engines/ms-windows/ChangeLog.old
modules/engines/ms-windows/wimp_style.c

index f7a30bc1cc740b33be606e024986304655f14b5e..75fe2a0d6743bf4b6b716d60a4a30cf957847f5b 100755 (executable)
@@ -1,3 +1,7 @@
+2003-10-20  Raymond Penners  <raymond@dotsphinx.com>\r
+\r
+       * src/wimp_style.c: Added grippers to XP scrollbars. \r
+\r
 2003-10-20  Dom Lachowicz <cinamod@hotmail.com>\r
 \r
        * configure.in: Bump version to the next release number (0.5.1)\r
index 74b8434b032ee75df988f9f4747872b2a67c4ea7..b78afa7b7ca8b8bbbcd8fb63e709695a508676d1 100755 (executable)
@@ -1145,12 +1145,18 @@ draw_box (GtkStyle      *style,
       if (GTK_IS_SCROLLBAR(widget))
         {
           GtkScrollbar * scrollbar = GTK_SCROLLBAR(widget);
+          gboolean is_v = GTK_IS_VSCROLLBAR(widget);
           if (xp_theme_draw(window,
-                            (GTK_IS_VSCROLLBAR(widget))
+                            is_v
                             ? XP_THEME_ELEMENT_SCROLLBAR_V
                             : XP_THEME_ELEMENT_SCROLLBAR_H,
                             style, x, y, width, height, state_type, area))
             {
+              xp_theme_draw(window,
+                            is_v
+                            ? XP_THEME_ELEMENT_GRIP_V
+                            : XP_THEME_ELEMENT_GRIP_H,
+                            style, x, y, width, height, state_type, area);
               return;
             }
         }